a__filter3(cons2(X, Y), 0, M) -> cons2(0, filter3(Y, M, M))
a__filter3(cons2(X, Y), s1(N), M) -> cons2(mark1(X), filter3(Y, N, M))
a__sieve1(cons2(0, Y)) -> cons2(0, sieve1(Y))
a__sieve1(cons2(s1(N), Y)) -> cons2(s1(mark1(N)), sieve1(filter3(Y, N, N)))
a__nats1(N) -> cons2(mark1(N), nats1(s1(N)))
a__zprimes -> a__sieve1(a__nats1(s1(s1(0))))
mark1(filter3(X1, X2, X3)) -> a__filter3(mark1(X1), mark1(X2), mark1(X3))
mark1(sieve1(X)) -> a__sieve1(mark1(X))
mark1(nats1(X)) -> a__nats1(mark1(X))
mark1(zprimes) -> a__zprimes
mark1(cons2(X1, X2)) -> cons2(mark1(X1), X2)
mark1(0) -> 0
mark1(s1(X)) -> s1(mark1(X))
a__filter3(X1, X2, X3) -> filter3(X1, X2, X3)
a__sieve1(X) -> sieve1(X)
a__nats1(X) -> nats1(X)
a__zprimes -> zprimes
↳ QTRS
↳ DependencyPairsProof
a__filter3(cons2(X, Y), 0, M) -> cons2(0, filter3(Y, M, M))
a__filter3(cons2(X, Y), s1(N), M) -> cons2(mark1(X), filter3(Y, N, M))
a__sieve1(cons2(0, Y)) -> cons2(0, sieve1(Y))
a__sieve1(cons2(s1(N), Y)) -> cons2(s1(mark1(N)), sieve1(filter3(Y, N, N)))
a__nats1(N) -> cons2(mark1(N), nats1(s1(N)))
a__zprimes -> a__sieve1(a__nats1(s1(s1(0))))
mark1(filter3(X1, X2, X3)) -> a__filter3(mark1(X1), mark1(X2), mark1(X3))
mark1(sieve1(X)) -> a__sieve1(mark1(X))
mark1(nats1(X)) -> a__nats1(mark1(X))
mark1(zprimes) -> a__zprimes
mark1(cons2(X1, X2)) -> cons2(mark1(X1), X2)
mark1(0) -> 0
mark1(s1(X)) -> s1(mark1(X))
a__filter3(X1, X2, X3) -> filter3(X1, X2, X3)
a__sieve1(X) -> sieve1(X)
a__nats1(X) -> nats1(X)
a__zprimes -> zprimes
A__ZPRIMES -> A__NATS1(s1(s1(0)))
MARK1(filter3(X1, X2, X3)) -> MARK1(X1)
MARK1(filter3(X1, X2, X3)) -> MARK1(X3)
MARK1(filter3(X1, X2, X3)) -> MARK1(X2)
A__NATS1(N) -> MARK1(N)
MARK1(nats1(X)) -> A__NATS1(mark1(X))
MARK1(filter3(X1, X2, X3)) -> A__FILTER3(mark1(X1), mark1(X2), mark1(X3))
MARK1(s1(X)) -> MARK1(X)
A__ZPRIMES -> A__SIEVE1(a__nats1(s1(s1(0))))
MARK1(sieve1(X)) -> A__SIEVE1(mark1(X))
MARK1(nats1(X)) -> MARK1(X)
MARK1(zprimes) -> A__ZPRIMES
A__SIEVE1(cons2(s1(N), Y)) -> MARK1(N)
A__FILTER3(cons2(X, Y), s1(N), M) -> MARK1(X)
MARK1(cons2(X1, X2)) -> MARK1(X1)
MARK1(sieve1(X)) -> MARK1(X)
a__filter3(cons2(X, Y), 0, M) -> cons2(0, filter3(Y, M, M))
a__filter3(cons2(X, Y), s1(N), M) -> cons2(mark1(X), filter3(Y, N, M))
a__sieve1(cons2(0, Y)) -> cons2(0, sieve1(Y))
a__sieve1(cons2(s1(N), Y)) -> cons2(s1(mark1(N)), sieve1(filter3(Y, N, N)))
a__nats1(N) -> cons2(mark1(N), nats1(s1(N)))
a__zprimes -> a__sieve1(a__nats1(s1(s1(0))))
mark1(filter3(X1, X2, X3)) -> a__filter3(mark1(X1), mark1(X2), mark1(X3))
mark1(sieve1(X)) -> a__sieve1(mark1(X))
mark1(nats1(X)) -> a__nats1(mark1(X))
mark1(zprimes) -> a__zprimes
mark1(cons2(X1, X2)) -> cons2(mark1(X1), X2)
mark1(0) -> 0
mark1(s1(X)) -> s1(mark1(X))
a__filter3(X1, X2, X3) -> filter3(X1, X2, X3)
a__sieve1(X) -> sieve1(X)
a__nats1(X) -> nats1(X)
a__zprimes -> zprimes
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ QDPOrderProof
A__ZPRIMES -> A__NATS1(s1(s1(0)))
MARK1(filter3(X1, X2, X3)) -> MARK1(X1)
MARK1(filter3(X1, X2, X3)) -> MARK1(X3)
MARK1(filter3(X1, X2, X3)) -> MARK1(X2)
A__NATS1(N) -> MARK1(N)
MARK1(nats1(X)) -> A__NATS1(mark1(X))
MARK1(filter3(X1, X2, X3)) -> A__FILTER3(mark1(X1), mark1(X2), mark1(X3))
MARK1(s1(X)) -> MARK1(X)
A__ZPRIMES -> A__SIEVE1(a__nats1(s1(s1(0))))
MARK1(sieve1(X)) -> A__SIEVE1(mark1(X))
MARK1(nats1(X)) -> MARK1(X)
MARK1(zprimes) -> A__ZPRIMES
A__SIEVE1(cons2(s1(N), Y)) -> MARK1(N)
A__FILTER3(cons2(X, Y), s1(N), M) -> MARK1(X)
MARK1(cons2(X1, X2)) -> MARK1(X1)
MARK1(sieve1(X)) -> MARK1(X)
a__filter3(cons2(X, Y), 0, M) -> cons2(0, filter3(Y, M, M))
a__filter3(cons2(X, Y), s1(N), M) -> cons2(mark1(X), filter3(Y, N, M))
a__sieve1(cons2(0, Y)) -> cons2(0, sieve1(Y))
a__sieve1(cons2(s1(N), Y)) -> cons2(s1(mark1(N)), sieve1(filter3(Y, N, N)))
a__nats1(N) -> cons2(mark1(N), nats1(s1(N)))
a__zprimes -> a__sieve1(a__nats1(s1(s1(0))))
mark1(filter3(X1, X2, X3)) -> a__filter3(mark1(X1), mark1(X2), mark1(X3))
mark1(sieve1(X)) -> a__sieve1(mark1(X))
mark1(nats1(X)) -> a__nats1(mark1(X))
mark1(zprimes) -> a__zprimes
mark1(cons2(X1, X2)) -> cons2(mark1(X1), X2)
mark1(0) -> 0
mark1(s1(X)) -> s1(mark1(X))
a__filter3(X1, X2, X3) -> filter3(X1, X2, X3)
a__sieve1(X) -> sieve1(X)
a__nats1(X) -> nats1(X)
a__zprimes -> zprimes
The following pairs can be strictly oriented and are deleted.
The remaining pairs can at least by weakly be oriented.
A__ZPRIMES -> A__NATS1(s1(s1(0)))
MARK1(filter3(X1, X2, X3)) -> MARK1(X1)
MARK1(filter3(X1, X2, X3)) -> MARK1(X3)
MARK1(filter3(X1, X2, X3)) -> MARK1(X2)
A__NATS1(N) -> MARK1(N)
MARK1(nats1(X)) -> A__NATS1(mark1(X))
MARK1(filter3(X1, X2, X3)) -> A__FILTER3(mark1(X1), mark1(X2), mark1(X3))
MARK1(s1(X)) -> MARK1(X)
A__ZPRIMES -> A__SIEVE1(a__nats1(s1(s1(0))))
MARK1(nats1(X)) -> MARK1(X)
MARK1(zprimes) -> A__ZPRIMES
A__SIEVE1(cons2(s1(N), Y)) -> MARK1(N)
A__FILTER3(cons2(X, Y), s1(N), M) -> MARK1(X)
MARK1(cons2(X1, X2)) -> MARK1(X1)
MARK1(sieve1(X)) -> MARK1(X)
Used ordering: Combined order from the following AFS and order.
MARK1(sieve1(X)) -> A__SIEVE1(mark1(X))
[zprimes, azprimes] > AZPRIMES > s1 > [ASIEVE1, sieve1, asieve1] > cons1 > [0, filter3, afilter3]
[zprimes, azprimes] > AZPRIMES > [nats1, anats1] > ANATS1 > [0, filter3, afilter3]
[zprimes, azprimes] > AZPRIMES > [nats1, anats1] > cons1 > [0, filter3, afilter3]
a__nats1(N) -> cons2(mark1(N), nats1(s1(N)))
a__nats1(X) -> nats1(X)
mark1(filter3(X1, X2, X3)) -> a__filter3(mark1(X1), mark1(X2), mark1(X3))
mark1(sieve1(X)) -> a__sieve1(mark1(X))
mark1(nats1(X)) -> a__nats1(mark1(X))
mark1(zprimes) -> a__zprimes
mark1(cons2(X1, X2)) -> cons2(mark1(X1), X2)
mark1(0) -> 0
mark1(s1(X)) -> s1(mark1(X))
a__zprimes -> a__sieve1(a__nats1(s1(s1(0))))
a__zprimes -> zprimes
a__sieve1(cons2(0, Y)) -> cons2(0, sieve1(Y))
a__sieve1(cons2(s1(N), Y)) -> cons2(s1(mark1(N)), sieve1(filter3(Y, N, N)))
a__sieve1(X) -> sieve1(X)
a__filter3(cons2(X, Y), 0, M) -> cons2(0, filter3(Y, M, M))
a__filter3(cons2(X, Y), s1(N), M) -> cons2(mark1(X), filter3(Y, N, M))
a__filter3(X1, X2, X3) -> filter3(X1, X2, X3)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
MARK1(sieve1(X)) -> A__SIEVE1(mark1(X))
a__filter3(cons2(X, Y), 0, M) -> cons2(0, filter3(Y, M, M))
a__filter3(cons2(X, Y), s1(N), M) -> cons2(mark1(X), filter3(Y, N, M))
a__sieve1(cons2(0, Y)) -> cons2(0, sieve1(Y))
a__sieve1(cons2(s1(N), Y)) -> cons2(s1(mark1(N)), sieve1(filter3(Y, N, N)))
a__nats1(N) -> cons2(mark1(N), nats1(s1(N)))
a__zprimes -> a__sieve1(a__nats1(s1(s1(0))))
mark1(filter3(X1, X2, X3)) -> a__filter3(mark1(X1), mark1(X2), mark1(X3))
mark1(sieve1(X)) -> a__sieve1(mark1(X))
mark1(nats1(X)) -> a__nats1(mark1(X))
mark1(zprimes) -> a__zprimes
mark1(cons2(X1, X2)) -> cons2(mark1(X1), X2)
mark1(0) -> 0
mark1(s1(X)) -> s1(mark1(X))
a__filter3(X1, X2, X3) -> filter3(X1, X2, X3)
a__sieve1(X) -> sieve1(X)
a__nats1(X) -> nats1(X)
a__zprimes -> zprimes